package com.example.pt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;

import java.util.Date;

/**
 * 用户保种统计
 */
@Entity
@TableName("user_seed_stats")
public class UserSeedStats {
    
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    private Integer userId;
    
    /**
     * 种子InfoHash
     */
    private String infoHash;
    
    /**
     * 开始做种时间
     */
    private Date startTime;
    
    /**
     * 最后一次做种时间
     */
    private Date lastActiveTime;
    
    /**
     * 保种时长（天）
     */
    private Integer seedDays;
    
    /**
     * 稀缺性系数
     */
    private Double scarcityFactor;
    
    /**
     * 保种积分
     */
    private Integer seedPoints;
    
    /**
     * 状态：0-正在做种，1-已停止做种
     */
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getInfoHash() {
        return infoHash;
    }

    public void setInfoHash(String infoHash) {
        this.infoHash = infoHash;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getLastActiveTime() {
        return lastActiveTime;
    }

    public void setLastActiveTime(Date lastActiveTime) {
        this.lastActiveTime = lastActiveTime;
    }

    public Integer getSeedDays() {
        return seedDays;
    }

    public void setSeedDays(Integer seedDays) {
        this.seedDays = seedDays;
    }

    public Double getScarcityFactor() {
        return scarcityFactor;
    }

    public void setScarcityFactor(Double scarcityFactor) {
        this.scarcityFactor = scarcityFactor;
    }

    public Integer getSeedPoints() {
        return seedPoints;
    }

    public void setSeedPoints(Integer seedPoints) {
        this.seedPoints = seedPoints;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
} 